Optimal. Leaf size=135 \[ \frac{2 C \sqrt{\cos (c+d x)} \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 B \sin (c+d x) \sqrt{b \sec (c+d x)}}{d}-\frac{2 b B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 C \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.122462, antiderivative size = 135, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 7, integrand size = 32, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.219, Rules used = {4047, 3768, 3771, 2639, 12, 16, 2641} \[ \frac{2 B \sin (c+d x) \sqrt{b \sec (c+d x)}}{d}-\frac{2 b B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 C \sin (c+d x) (b \sec (c+d x))^{3/2}}{3 b d}+\frac{2 C \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4047
Rule 3768
Rule 3771
Rule 2639
Rule 12
Rule 16
Rule 2641
Rubi steps
\begin{align*} \int \sqrt{b \sec (c+d x)} \left (B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac{B \int (b \sec (c+d x))^{3/2} \, dx}{b}+\int C \sec ^2(c+d x) \sqrt{b \sec (c+d x)} \, dx\\ &=\frac{2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{d}-(b B) \int \frac{1}{\sqrt{b \sec (c+d x)}} \, dx+C \int \sec ^2(c+d x) \sqrt{b \sec (c+d x)} \, dx\\ &=\frac{2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{d}+\frac{C \int (b \sec (c+d x))^{5/2} \, dx}{b^2}-\frac{(b B) \int \sqrt{\cos (c+d x)} \, dx}{\sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}\\ &=-\frac{2 b B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{d}+\frac{2 C (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 b d}+\frac{1}{3} C \int \sqrt{b \sec (c+d x)} \, dx\\ &=-\frac{2 b B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{d}+\frac{2 C (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 b d}+\frac{1}{3} \left (C \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}\right ) \int \frac{1}{\sqrt{\cos (c+d x)}} \, dx\\ &=-\frac{2 b B E\left (\left .\frac{1}{2} (c+d x)\right |2\right )}{d \sqrt{\cos (c+d x)} \sqrt{b \sec (c+d x)}}+\frac{2 C \sqrt{\cos (c+d x)} F\left (\left .\frac{1}{2} (c+d x)\right |2\right ) \sqrt{b \sec (c+d x)}}{3 d}+\frac{2 B \sqrt{b \sec (c+d x)} \sin (c+d x)}{d}+\frac{2 C (b \sec (c+d x))^{3/2} \sin (c+d x)}{3 b d}\\ \end{align*}
Mathematica [A] time = 0.26584, size = 90, normalized size = 0.67 \[ \frac{(b \sec (c+d x))^{3/2} \left (2 C \cos ^{\frac{3}{2}}(c+d x) \text{EllipticF}\left (\frac{1}{2} (c+d x),2\right )+2 \sin (c+d x) (3 B \cos (c+d x)+C)-6 B \cos ^{\frac{3}{2}}(c+d x) E\left (\left .\frac{1}{2} (c+d x)\right |2\right )\right )}{3 b d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.289, size = 508, normalized size = 3.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \sqrt{b \sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \sqrt{b \sec \left (d x + c\right )}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec{\left (c + d x \right )}} \left (B + C \sec{\left (c + d x \right )}\right ) \sec{\left (c + d x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right )\right )} \sqrt{b \sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]